package com.ruoyi.system.api.factory;

import com.ruoyi.system.api.RemoteCarouselService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteCarouselFallbackFactory implements FallbackFactory<RemoteCarouselService> {

    private static final Logger log = LoggerFactory.getLogger(RemoteFileFallbackFactory.class);

    @Override
    public RemoteCarouselService create(Throwable cause) {

        log.error("日志服务调用失败:{}", cause.getMessage());
        return null;
    }
}
